package com.zhijiaoyun.model.dto;

/**
 * @author shisfish
 * @date 2017/12/14
 */
public class UserSessionDTO {

    /**
     * 用户id
     */
    private Long id;

    /**
     * 登录设备
     */
    private String device;

    /**
     * sessionId
     */
    private String sessionId;

    /**
     * 登录ip
     */
    private String ip;

    public UserSessionDTO() {
    }

    public UserSessionDTO(Long id, String device, String sessionId, String ip, Long expDate) {
        this.id = id;
        this.device = device;
        this.sessionId = sessionId;
        this.ip = ip;
        this.expDate = expDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getExpDate() {
        return expDate;
    }

    public void setExpDate(Long expDate) {
        this.expDate = expDate;
    }

    /**

     * 失效时间
     */
    private Long expDate;

    @Override
    public String toString() {
        return "UserSessionDTO{" +
                "id=" + id +
                ", device='" + device + '\'' +
                ", sessionId='" + sessionId + '\'' +
                ", ip='" + ip + '\'' +
                ", expDate=" + expDate +
                '}';
    }
}
